<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="check.js"></script>
</head>
<body>
    <form action="check">
        用户名:<input   type="text" name="userName" id="userName" onblur="check(this.id)"><br>
        密码:<input   type="text" name="pwd" id="pwd" onblur="check(this.id)"><br>
        邮箱:<input   type="text" name="mailbox" id="mailbox" onblur="check(this.id)"><br>
        电话:<input   type="text" name="phone" id="phone" onblur="check(this.id)"><br>
        生日:<input   type="text" name="birthday" id="birthday" onblur="check(this.id)"><br>
        <span id="checkSpan"></span><br>
        <input type="button" value="提交" onclick="result()">
    </form>
</body>
</html>